package cn.itcast.hbase;

import cn.itcast.hbase.util.HBaseUtil;

import java.io.IOException;

public class TestHbaseAPI3 {
    public static void main(String[] args) throws IOException {
        //创建连接对象
        HBaseUtil.makeHBaseConnection("192.168.1.12", "2181");

        HBaseUtil.createTable("tttt","C1");

        HBaseUtil.insertData("tttt", "1003", "C1", "name", "jinqi");

        //关闭连接
        HBaseUtil.close();
    }
}
